import random


def generate_random_numbers(seed, count):
    random.seed(seed)
    for _ in range(count):
        yield random.randint(0, 8)


# Set the seed
random_seed = 42

# Generate 365 different random numbers using the generator
random_number_generator = generate_random_numbers(random_seed, 10)

# Print the first 10 random numbers as an example
for _ in range(10):
    print(next(random_number_generator), end=" ")

print()

random_number_generator = generate_random_numbers(random_seed, 10)
for _ in range(10):
    print(next(random_number_generator), end=" ")

print()
random_number_generator = generate_random_numbers(random_seed, 10)

for _ in range(10):
    print(next(random_number_generator), end=" ")
